import request from '@/utils/request'

export const feature = () => {
    return request({
        url: '/user/feature'
    })
}

export const chapter = () => {
    return request({
        url: '/user/chapter'
    })
}


export const listUser = params => {
    return request({
        url: '/user/list',
        method: 'GET',
        params
    })
}


export const setA = data => {
    return request({
        url: '/user/setAdmin',
        method: 'POST',
        data
    })
}


export const unsetA = data => {
    return request({
        url: '/user/unsetAdmin',
        method: 'POST',
        data
    })
}

export const setL = data => {
    return request({
        url: '/user/setLogout',
        method: 'POST',
        data
    })
}


export const unsetL = data => {
    return request({
        url: '/user/unSetLogout',
        method: 'POST',
        data
    })
}
